﻿using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    public class UserIdentInfo
    {
        /// <summary>
        /// 个人用户真实姓名。长度最大50个字符。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userName", Required = Required.AllowNull)]
        [MaxLength(50)]
        public string UserName { get; set; }

        /// <summary>
        /// 证件类型 ：
        ///id_card: 身份证
        ///passport: 护照
        ///hk_macao: 港澳居民来往内地通行证
        ///taiwan: 台湾居民来往大陆通行证
        ///只有携带这个参数，identNo参数才有效。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "identType", Required = Required.Always)]
        public string IdentType { get; set; }

        /// <summary>
        /// 证件号。跟证件类型关联，长度最大50个字符。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "identNo", Required = Required.Always)]
        [MaxLength(50)]
        public string IdentNo { get; set; }
    }
}